package com.wc.data_structures.tree;


/**
 * @Author congge
 * @Date 2023/4/22 16:06
 * @description 树节点
 */
class TreeNode<T> {
    public T value;
    // 左子树
    public TreeNode<T> left;
    // 右字数
    public TreeNode<T> right;

    public TreeNode() {

    }

    public TreeNode(T value) {
        this.value = value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    public T getValue() {
        return value;
    }
}
